package com.tus.model;

import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;


@Setter
@Getter
public class UploadInfo {
    private String uploadId;
    private String fileName;
    private long fileSize;
    private long offset;
    private String filePath;
    private long createdAt;
    private long expiresAt;
    private String checksum;
    private String checksumAlgorithm;
    private boolean verified;

    private boolean parallelUpload;

    private boolean completed;
    // 分片文件路径列表
    private List<String> completedChunks;
    // 分片路径 → 偏移量
    private Map<String, Long> chunkOffsets;
    private boolean finalUpload = false;
}